Student Solution

-->

"Education is the most powerful weapon which you can use to change the world”
– Nelson Mandela

1 University

1 Course

2 Subjects

7.4 - Shiny Project 2

7.4 - Shiny Project 2

Q Creating Code Modify the base R version (not the ggplot version) of the "Another shiny Project" found in Chapter 4 of this module's readings. Replace the "airquality" data set with the R built-in data set "mtcars". Use only the variables mpg, disp, hp, drat, wt, and qsec from the mtcars data set. Pick any two variables which make sense to use for the regression equation. Copy your R code and program output in a document and submit your results for this assignment. ________________________________________ Save your assignment using a naming convention that includes your first and last name and the activity number (or description). Do not add punctuation or special characters.

View Related Questions

Solution Preview

Code of Another Shiny Project: library(datasets) library(tidyr) library(tibble) aq.no.missing <-drop_na(mtcars) options <- c("MPG (Miles Per Gallon" = "mpg", "DISP (displacement)" = "disp", "HP(Horsepower)" = "hp", "DART(Drive Ratio)" = "dart", "WT(Weight)" = "wt", "QSEC(Quarter Seconds)" = "qsec") df.options <-data.frame(options) df.lv <-rownames_to_column(df.options) colnames(df.lv) <-c("lable","value")